#pragma once
#include "Serial.h"
#include <vector>
class MeterUARTCmdManger
{
public:
	void prepareMode(CSerial* myMeterSerial, CString cmd);
	bool prepareRange(CSerial* myMeterSerial, CString cmd);
	void prepareRefreshRate(CSerial* myMeterSerial);
	void readMeter(CSerial* myMeterSerial);
	int executeOneCmd(CSerial* myMeterSerial, CString cmd);
	int MeterUARTCmdManger::parseResponse(std::vector<TCHAR>& resVec, CString cmd);
	const CString measCmd = L"MEAS?";
	const CString rangeCmd = L"RANGE";
	const CString testResCmd = L"OHMS";
	const CString testCurCmd = L"ADC";
	const CString testVolCmd = L"VDC";
	const CString refreshRateCmd = L"RATE M";//S M F
	const CString getInfoCmd = L"*IDN?";
	const CString queryTestMode = L"FUNC1?";
	const CString queryRange = L"RANGE1?";
};

